<script setup>
import { ref } from 'vue'
import { RouterView } from 'vue-router'
import { chunk, compact, sum, sumBy, omit, uniq } from 'lodash'

const data = chunk([1, 2, 3, 4, 5, 6, 7, 8, 9],4)
// console.log(data)

const data1 = compact([0, 1, false, 2, '', 3])
// console.log(data1) // 1 2 3

const data2 = sum([1, 2, 3, 4, 5, 6, 7, 8, 9])
// console.log(data2) // 45

const data3 = sumBy([{a: 123, b: 344}, {a: 123, b: 344}], 'b')
// console.log(data3) // 688

let obj = { a: 123, b: 344 }
const data4 = omit(obj, ['a'])
console.log(data4)

let obj2 = [1,1,2,2,2,3,3,4]
const data5 = uniq(obj2)
console.log(data5)
</script>

<template>
  <div>
    <RouterView></RouterView>
  </div>
</template>

<style scoped>

</style>
